{
    "resourceType": "Bundle",
    "id": "{{$timestamp}}",
    "meta": {
        "profile": [
            "https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"
        ]
    },
    "identifier": {
        "system": "urn:ietf:rfc:{{$timestamp}}",
        "value": "urn:uuid:{{$timestamp}}"
    },
    "type": "document",
    "timestamp": "2024-07-22T11:12:21+00:00",
    "entry": [
       {
            "fullUrl": "Composition/{{$timestamp}}",
            "resource": {
                "resourceType": "Composition",
                "id": "{{$timestamp}}",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/CompDocument"
                    ]
                },
                "status": "final",
                "type": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/CompositionType",
                            "code": "general"
                        }
                    ]
                },
                "subject": [
                    {
                        "reference": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
                        "display": "Тестируем Еами Васильевич"
                    }
                ],
                "date": "2024-07-22T11:12:21Z",
                "author": [
                    {
                        "reference": "Practitioner/a9fd2189-fe85-11ef-9450-1d25bbc3f449",
                        "display": "Майстрова Елизавета Андреевна"
                    }
                ],
                "title": "Discharge Summary",
                "custodian": {
                    "reference": "Organization/a1a103d1-bf02-4c95-818a-3e3bc32cabe0",
                    "display": "Государственное научное учреждение \"ОБЪЕДИНЕННЫЙ ИНСТИТУТ ПРОБЛЕМ ИНФОРМАТИКИ НАЦИОНАЛЬНОЙ АКАДЕМИИ НАУК БЕЛАРУСИ\""
                }
            }
        },
        {
            "fullUrl": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
            "resource": {
                "resourceType": "Patient",
                "id": "pa-69377c81-92ea-11f0-aa4b-78d8e5545e22",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"
                    ]
                },
                "identifier": [
                    {
                        "use": "usual",
                        "type": {
                            "coding": [
                                {
                                    "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                                    "code": "INP"
                                }
                            ]
                        },
                        "value": "7551306A009PB6"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "family": "Тестируем",
                        "given": [
                            "Еами",
                            "Васильевич"
                        ]
                    }
                ],
                "telecom": [
                    {
                        "system": "phone",
                        "value": "89001234567"
                    }
                ],
                "gender": "male",
                "birthDate": "1989-01-31",
                "deceasedBoolean": false,
                "address": [
                    {
                        "use": "home",
                        "line": [
                            "Минск, г. Минск"
                        ],
                        "city": "г. Минск",
                        "state": "Минск",
                        "postalCode": "209124",
                        "country": "Беларусь",
                        "text": "Минск, г. Минск"
                    }
                ]
            }
        },
        {
            "fullUrl": "DiagnosticReport/{{$timestamp}}",
            "resource": {
                "resourceType": "DiagnosticReport",
                "id": "{{$timestamp}}",
                "meta": {
                    "profile": [
                        "https://fhir.by/StructureDefinition/ImagingDiagnosticReport"
                    ]
                },
                "identifier": [
                    {
                        "value": "123",
                        "assigner": {
                            "reference": "Organization/a1a103d1-bf02-4c95-818a-3e3bc32cabe0"
                        }
                    }
                ],
                "status": "final",
                "code": {
                    "coding": [
                        {
                            "system": "https://fhir.by/ValueSet/ImagingStudyCode",
                            "code": "RPID10"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/pa-69377c81-92ea-11f0-aa4b-78d8e5545e22"
                },
                "issued": "2025-07-14T12:39:10.1396819+03:00",
                "resultsInterpreter": [
                    {
                        "reference": "PractitionerRole/90e87d84-1b67-11f0-8257-f1172741d6fc"
                    }
                ],
                "note": [
                    {
                        "text": "Проведено МР-исследование скорости кровотока сердца.\n               Получены данные о фазовых потоках через клапанные структуры, записаны параметры кровотока."
                    }
                ],
                "basedOn": [
                    {
                        "reference": "ServiceRequest/123123"
                    }
                ],
                "study": [
                    {
                        "reference": "ImagingStudy/{{$timestamp}}"
                    }
                ],
                "conclusion": "Какое-то описание"
            }
        }
    ]
}